package com.ny.service;

import com.ny.entity.Stud;

import java.sql.SQLException;
import java.util.List;

public interface StudentService {
    int addStu(Stud stud) throws SQLException,ClassNotFoundException;
    Stud log(String name,String pwd) throws SQLException;
    Stud changePwd(String name,String pwd) throws SQLException, ClassNotFoundException;

    Stud deleteStu(String username, String pwd);

    Stud changePho(String name,String phone) throws SQLException, ClassNotFoundException;
    List<Stud> findAll() throws SQLException, ClassNotFoundException;
}
